<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/mytable/Sys_Flow.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Sys_Flow.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'flowid',
                footer: "Foots",
                cnName: '流程定义',
                name: 'mytable/Sys_Flow',
                url: "/Sys_Flow/",
                sortName: "flowid"
            });
            const editFormFields = ref({"typeid":"","stepid":"","nextstepid":"","roleid":[],"bek":""});
            const editFormOptions = ref([[{"dataKey":"typelist","data":[],"title":"业务类型","field":"typeid","type":"select"},
                               {"dataKey":"steplist","data":[],"title":"当前步骤","field":"stepid","type":"select"}],
                              [{"dataKey":"steplist","data":[],"title":"下一步骤","field":"nextstepid","type":"select"},
                               {"dataKey":"tree_roles","data":[],"title":"next处理角色","field":"roleid","type":"cascader"}],
                              [{"dataKey":"flow_b_e","data":[],"title":"流程起始标识","field":"bek","type":"select"}]]);
            const searchFormFields = ref({"typeid":"","stepid":"","nextstepid":"","roleid":[],"bek":""});
            const searchFormOptions = ref([[{"dataKey":"typelist","data":[],"title":"业务类型","field":"typeid","type":"select"},{"dataKey":"steplist","data":[],"title":"当前步骤","field":"stepid","type":"select"}],[{"dataKey":"steplist","data":[],"title":"下一步骤","field":"nextstepid","type":"select"},{"dataKey":"tree_roles","data":[],"title":"next处理角色","field":"roleid","type":"cascader"}],[{"dataKey":"flow_b_e","data":[],"title":"流程起始标识","field":"bek","type":"select"}]]);
            const columns = ref([{field:'flowid',title:'流程编号',type:'int',link:true,sort:true,width:55,readonly:true,require:true,align:'left',sort:true},
                       {field:'typeid',title:'业务类型',type:'int',bind:{ key:'typelist',data:[]},width:110,align:'left'},
                       {field:'stepid',title:'当前步骤',type:'int',bind:{ key:'steplist',data:[]},width:110,align:'left'},
                       {field:'nextstepid',title:'下一步骤',type:'int',bind:{ key:'steplist',data:[]},width:110,align:'left'},
                       {field:'roleid',title:'next处理角色',type:'int',bind:{ key:'tree_roles',data:[]},width:110,align:'left'},
                       {field:'bek',title:'流程起始标识',type:'int',bind:{ key:'flow_b_e',data:[]},width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
